package com.zhuss.core.db.dao.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.bo.core.user.DeleteUserDeptBo;
import com.zhuss.core.db.dao.gen.UserDeptMapper;
import com.zhuss.core.db.entity.UserDept;

@Mapper
public interface UserDeptDao extends UserDeptMapper {
	
	List<UserDept> listDept(@Param("userId") Long userId);

	List<UserDept> listUser(@Param("deptId") Long deptId);
	
	void create(UserDept record);

	void deleteByUserDept(@Param("bo") DeleteUserDeptBo bo, @Param("userId") Long userId, @Param("deptIdList") List<Long> deptIdList);
	
	void deleteByDeptUser(@Param("bo") DeleteUserDeptBo bo, @Param("deptId") Long deptId, @Param("userIdList") List<Long> userIdList);
    

    
}